package com.wander.juc.lock;

import java.util.concurrent.Executor;
import java.util.concurrent.Executors;
import java.util.concurrent.locks.ReentrantReadWriteLock;

public class ReentrantReadWriteLockExample {
    public static void main(String[] args) {
        /**
         * new ReentrantReadWriteLock()默认参数为false,创建非公平锁，true时创还能公平锁
         *
         */
        ReentrantReadWriteLock lock = new ReentrantReadWriteLock();

        Executors.newSingleThreadExecutor().submit(() -> {
            
        });

    }
}

